//
//  CP_ViewController.m
//  Cooper_Table
//
//  Created by jhfappkf@163.com on 07/14/2020.
//  Copyright (c) 2020 jhfappkf@163.com. All rights reserved.
//

#import "CP_ViewController.h"
#import <CooperSDK/CooperSDK.h>
#import <Cooper_Table/Cooper_Table.h>

@interface CP_ViewController ()

@end

@implementation CP_ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (IBAction)rowsTap:(id)sender {
    TableVC *vc = [TableVC vcWithClassStr:@"TestOneTableVM"];
    vc.navigationItem.title = @"测试第二个";
    routerTo(vc);
}


- (IBAction)test:(id)sender {
    
//    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
//    [btn setImage:[UIImage imageNamed:@"icon_none_box"] forState:0];
//    btn.frame = CGRectMake(0, 0, 44, 44);
//    btn.backgroundColor =  [UIColor randomColor];
    
    TableVC *vc = [TableVC vcWithClassStr:@"TestTableVM"];
//    TableVC *vc = [TableVC vcWithClassStr:@"TestImagesTableVM"];
    vc.navigationItem.title = @"测试";
    
//    vc.navbarC = [AGGNavControlModel noLineDefaultC];
//    vc.navbarC.barTitleColorHex = @"#ff5566";
//    vc.navbarC.barNavBarColorHex = @"#f5f6f7";
//    vc.navbarC.barBackImgName = @"icon_func_rightarrow";
//    vc.navbarC.rightBTImgName = @"icon_func_rightarrow";
//    vc.navbarC.rightBTMethod = @"method:";
//    [btn addTarget:vc.vm action:@selector(show:) forControlEvents:UIControlEventTouchUpInside];
//    [vc.navigationV addRightViews:@[btn]];
    
    routerTo(vc);
}


- (IBAction)bleTap:(id)sender {
    routerToByRowsVM(@"BluetoothInfoListVM", @"蓝牙");
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
